package fileDemo;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class Demo9 {
    public static void main(String[] args) throws FileNotFoundException {
        try(InputStream inputStream=new FileInputStream("D:/Project/java/java-biog/"  +
                                    "Day20250312/IO测试文件目录/测试图片.png")){
            while(true){
                int n=inputStream.read();
                if(n==-1) break;
                System.out.println(n);
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
